﻿using System;

namespace Bookvar.ObjectModel
{
    public class ImageInfo
    {
        public static readonly double DefaultWidth = 128;
        public static readonly double DefaultHeight = 128;

        #region Properties

        public Uri ImageUri { get; set; }

        public Uri ThumbnailUri { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public double Width { get; set; }

        public double Height { get; set; }

        #endregion

        public ImageInfo()
        {
        }

        public ImageInfo( Uri imageUri, string title )
            : this( imageUri, null, title, string.Empty )
        {
        }

        public ImageInfo( Uri imageUri, Uri thumbnailUri, string title, string description )
            : this( imageUri, thumbnailUri, title, description, DefaultWidth, DefaultHeight )
        {
        }

        public ImageInfo( Uri imageUri, Uri thumbnailUri, string title, string description, double width, double height )
        {
            this.ImageUri = imageUri;
            this.ThumbnailUri = thumbnailUri;
            this.Title = title;
            this.Description = description;
            this.Width = width;
            this.Height = height;
        }
    }
}